package com.lemon.stock.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "batch")
data class Batch(
    @ColumnInfo(name = "stock_id") val stockId: String,
    @ColumnInfo(name = "invest_index") val investIndex: Int, //投资批次
    @ColumnInfo(name = "in_date") val inDate: Long,
    @ColumnInfo(name = "out_date") var outDate: Long=0,
    @ColumnInfo(name = "max_amount") var maxAmount: Int,
    @ColumnInfo(name = "total_amount") var totalAmount: Int,
    @ColumnInfo(name = "max_invest") var maxInvest: Float,
    @ColumnInfo(name = "total_invest") var totalInvest: Float,
    @ColumnInfo(name = "profit_money") var profitMoney: Float = 0F,
    @ColumnInfo(name = "bonus_money") var bonusMoney: Float = 0F,
    @ColumnInfo(name = "commission_money") var commissionMoney: Float = 0F,
    @ColumnInfo(name = "transfer_money") var transferMoney: Float = 0F,
    @ColumnInfo(name = "tax_money") var taxMoney: Float = 0F,
    @ColumnInfo(name = "bonus_tax") var bonusTax: Float = 0F

) {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    var id: Long = 0
}
